How to fix the code execution cannot proceed because